Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applications: asset_tracker_v2: Replace hardcoded value with HW_ID_LEN #12822

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

simensrostad
Copy link
Contributor

Replace hardcoded client ID with HW_ID_LEN to avoid truncating if HW ID library is configured to output IDs longer than 15 characters.

Fixes NCSDK-24219

@simensrostad simensrostad added the bugfix Fixes a known bug label Oct 23, 2023
@simensrostad simensrostad added this to the 2.5.0 milestone Oct 23, 2023
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Oct 23, 2023
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Oct 23, 2023

Test specification

CI/Jenkins/NRF

  • Integration Platforms

CI/Jenkins/integration

Test Module File based changes Manually selected West overwrite
test-fw-nrfconnect-nrf-iot_thingy91 X

Detailed information of selected test modules

Note: This message is automatically posted and updated by the CI

@jorgenmk jorgenmk self-requested a review October 23, 2023 13:15
@@ -15,7 +15,7 @@
LOG_MODULE_REGISTER(MODULE, CONFIG_CLOUD_INTEGRATION_LOG_LEVEL);

#if !defined(CONFIG_CLOUD_CLIENT_ID_USE_CUSTOM)
#define AWS_CLOUD_CLIENT_ID_LEN 15
#define AWS_CLOUD_CLIENT_ID_LEN HW_ID_LEN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works with (HW_ID_LEN - 1)

Replace hardcoded client ID with `HW_ID_LEN` to avoid truncating
if HW ID library is configured to output IDs longer than 15 characters.

Fixes NCSDK-24219

Signed-off-by: Simen S. Røstad <[email protected]>
@cvinayak cvinayak merged commit 61d24c0 into nrfconnect:main Oct 24, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants